package com.ynding.spring.idea.ddd.core.model.wechat.entity;

import com.ynding.spring.idea.ddd.core.model.wechat.dp.StatementNumber;
import com.ynding.spring.idea.ddd.core.model.bo.Entity;
import com.ynding.spring.idea.ddd.core.model.wechat.valobj.AssetVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * <p> </p>
 *
 * @author ynding
 * @version 2022/4/26
 **/
@Data
@ApiModel(value = "Statement", description = "账单明细")
public class Statement implements Entity<StatementNumber> {

    /**
     * 资金列表
     */
    @ApiModelProperty("资金列表")
    private List<AssetVO> assets;

    private Statement(){}

    /**
     * 添加一笔资金
     * @param asset
     */
    public void add(AssetVO asset){
        assets.add(asset);
    }

 }
